import { createRouter, createWebHashHistory } from 'vue-router'
// import NProgress from 'nprogress'
// import { message } from 'ant-design-vue';
const router = createRouter({
    history: createWebHashHistory(),
    routes: [


        {
            path: '/',
            redirect: '/login',

        },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/views/login.vue'),

        }],
});
// NProgress.configure({ showSpinner: false })   // 显示右上角螺旋加载提示
// let isRouteAdded = false;
// router.beforeEach(async (to: any, _from: any, next: any) => {
//     NProgress.start();
//     next();
// });
// router.afterEach(() => {
//     NProgress.done()
// })

export default router;